package flow.js;

import flow.elemainspace.ThrowNewGoods;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageButton;

public class GoodsActivity extends Activity{
	private Button btn_relatedGoods = null;
	private Button btn_concernGoods = null;
	private Button btn_stockGoods = null;
	private ImageButton fixedShop = null;
	private ImageButton throwNewGoods=null;
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.goodsactivity);
        btn_relatedGoods = (Button)findViewById(R.goodsactivity.button1);
        btn_concernGoods = (Button)findViewById(R.goodsactivity.button2);
        btn_stockGoods = (Button)findViewById(R.goodsactivity.button3);
        fixedShop = (ImageButton)findViewById(R.goodsactivity.ibtn_FixShopButton);
        throwNewGoods= (ImageButton)findViewById(R.goodsactivity.ibtn_throwNewGoods);
        
        throwNewGoods.setOnClickListener(new NewGoodsListener());
        
        
        
	}
	
	class NewGoodsListener implements OnClickListener{

		public void onClick(View v) {
			// TODO Auto-generated method stub
			Intent intent = new Intent();
			
			intent.setClass(GoodsActivity.this, ThrowNewGoods.class);
			
			GoodsActivity.this.startActivity(intent);
		}
    	
    }

}
